package com.gdut.Demo1;

public class Phone {
    private String brand;
    private String color;
    private String type;
    private String[] apps = new String[10];
    private String name;
    private double prise;

    public Phone() {
    }


    public void playGame(String app) {
        System.out.println("正在玩" + app);
        System.out.println("---------");
    }

    public void installApp(String[] apps) {
        for (int i = 0; i < apps.length; i++) {
            if (apps[i] == null) {
                break;
            }
            System.out.println("正在安装" + apps[i]);
            System.out.println(apps[i] + "安装完成");
        }
        System.out.println("---------");
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String[] getApps() {
        return apps;
    }

    public void setApps(String[] apps) {
        this.apps = apps;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrise() {
        return prise;
    }

    public void setPrise(double prise) {
        this.prise = prise;
    }
}
